﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<FacialClub.Models.ViewModels.CompanyInfoViewModel>" %>
<%@ Import Namespace="FacialClub.Helpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> Index </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <%: Html.ValidationSummaryJQuery("Please fix these errors.", new Dictionary<string, object> { { "id", "valSumId" } })%>
  <% Html.EnableClientValidation(); %>
  <% using (Html.BeginForm()) {%>
  <% ViewContext.FormContext.ValidationSummaryId = "valSumId"; %>
  <fieldset>
  <legend>Company Information</legend>
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.CompanyName) %></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.CompanyName)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.CompanyName,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.Address)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.Address)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.Address,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.City)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.City)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.City,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.State)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.State)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.State,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.PostalCode)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.PostalCode)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.PostalCode,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.Country)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.Country)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.Country,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.Email)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.Email)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.Email,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.Phone)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.Phone)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.Phone,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.Fax)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.Fax)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.Fax,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.URL)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.URL)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.URL,"*")%></td>
    </tr>
  </table>
  </fieldset>
  <fieldset>
  <legend>Contact Person Information</legend>
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.ContactFirstName)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.ContactFirstName)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.ContactFirstName,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.ContactLastName)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.ContactLastName)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.ContactLastName,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.ContactEmail)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.ContactEmail)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.ContactEmail,"*")%></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  </fieldset>
  <fieldset>
  <legend>Billing Information</legend>
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToFirstName)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToFirstName)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToFirstName,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToLastName)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToLastName)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToLastName,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToAddress)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToAddress)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToAddress,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToCity)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToCity)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToCity,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToState)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToState)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToState,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToPostalCode)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToPostalCode)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToPostalCode,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToPhone)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToPhone)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToPhone,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.BillToCountry)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.BillToCountry)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.BillToCountry,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.CreditCardNumber)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.CreditCardNumber)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.CreditCardNumber,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.NameOnCard)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.NameOnCard)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.NameOnCard,"*")%></td>
    </tr>
    <tr>
      <td><%: Html.LabelFor(model => model.CompanyInfo.ExpiryDate)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.ExpiryDate)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.ExpiryDate,"*")%></td>
      <td>&nbsp;</td>
      <td><%: Html.LabelFor(model => model.CompanyInfo.TimeZone)%></td>
      <td><%: Html.TextBoxFor(model => model.CompanyInfo.TimeZone)%><%: Html.DropDownList("TimeZone", Model.TimeZonesList)%>
        <%: Html.ValidationMessageFor(model => model.CompanyInfo.TimeZone,"*")%></td>
    </tr>
  </table>
  </fieldset>
  <p>
    <input type="submit" value="Save" />
  </p>
  <% } %>
  <div>
    <%: Html.ActionLink("Back to List", "Index") %>
  </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="/Scripts/jquery.updnWatermark.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.updnWatermark.attachAll();
    });
</script>
 </asp:Content>
